using System;
using System.Linq;

using ApiTest.Entitys;

using Apps.Shared.IServices;

using Utils;

namespace ApiTest.Services
{
    [Injection]
    public class GoodsService : Mdb<Goods>, IGoodsService
    {
        public Goods Test()
        {
            return Query
                .Where(a => a.IsDel == false)
                .OrderByDescending(a => a.GoodsId)
                .FirstOrDefault();
        }
    }
}

